<script setup>
import TabBar from '@/components/TabBar.vue';

</script>

<template>
  <div id="app-container">
    <div class="container">
      <router-view v-slot="{ Component, route }">
        <component :is="Component" :key="route.path" />
      </router-view>
    </div>
    <TabBar />
  </div>
</template>

<style>
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.12);
  --bg: #f5f7fb;
  --text-color: #111827;
  --text-secondary: #6b7280;
  --secondary-color: #374151;
  --border-radius: 12px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: 'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  height: 100%;
}

* {
  box-sizing: border-box;
}

#app-container {
  height: 100vh;
  position: relative;
}

.container {
  height: calc(100vh - 85px);
  box-sizing: border-box;
  overflow: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

button,
input,
select,
textarea {
  font-family: inherit;
}


/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

::selection {
  background-color: var(--primary-light);
  color: #111827;
}
</style>